
<form id="form_add"><input type="hidden" name="material" value="{[$smarty.request.id]}" />
<input type="hidden" name="price" value="{[$result.price]}" />
<input type="hidden" name="density" id="density" value="{[$result.density]}" />
<input type="hidden" name="unit2" id="unit2" value="{[$result.unit]}" />
<input type="hidden" name="price2" id="price2" value="{[$result.price]}" />
<table>
	<tr>
		<td width="20%" align="right">入库员：</td>
		<td width="30%"><input type="text" name="emp" id="emp" size="12" value="{[$smarty.session.id]}:{[$smarty.session.name]}" title="{[$t.emp_|emp:'入库员']}"> <input
			type="checkbox" name="t_emp" id="t_emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}" checked> 自己</td>
		<td width="20%" align="right">入库日期：</td>
		<td width="30%"><input type="text" name="date" id="date" size="12" value="{[$smarty.now|date_format:'%Y-%m-%d']}"></td>
	</tr>
	<tr>
		<td align="right">仓库：</td>
		<td colspan="3"><input type="text" name="place" id="place" size="12" value="" title="请选择仓库或输入新仓库名称。如南山仓库"> <select name='place_t' id='place_t'>
			{[html_options options=$place_option selected=-]}
		</select></td>
	</tr>
	<tr>
		<td align="right">类型：</td>
		<td><select name='type' id='type'>
			{[html_options options=$type_option selected=1]}
		</select></td>
		<td align="right">编号：</td>
		<td>{[$result.code]}</td>
	</tr>
	<tr>
		<td align="right">名称：</td>
		<td colspan="3"><textarea rows="2" name="name" id="name" cols="50">{[$result.name]}</textarea></td>
	</tr>
	<tr id='label_cube'>
		<td align="right">规格：</td>
		<td colspan="3">(长*宽*高)<input type="text" name="v_l" id="v_l" size="8" value=""> <input type="text" name="v_w" id="v_w" size="8"
			value=""> <input type="text" name="v_h1" id="v_h1" size="8" value=""> (单位：毫米)</td>
	</tr>
	<tr id='label_cylinder'>
		<td align="right">规格：</td>
		<td colspan="3">(ф直径*高)<input type="text" name="v_d" id="v_d" size="8" value=""> <input type="text" name="v_h2" id="v_h2" size="8"
			value=""> (单位：毫米)</td>
	</tr>
	<tr id='label_standard'>
		<td align="right">规格：</td>
		<td colspan="3"><textarea rows="2" name="standard" id="standard" cols="50">{[$result.standard]}</textarea></td>
	</tr>
	<tr id='label_v'>
		<td align="right">体积：</td>
		<td colspan="3"><label id="vvv"></label>(单位：立方厘米)</td>
	</tr>
	<tr id="label_unit">
		<td align="right">单位：</td>
		<td colspan="3"><input type="text" name="unit" id="unit" size="12" value="{[$result.unit]}"> <select name='unit_t' id='unit_t'>
			{[html_options options=$unit_option selected=-]}
		</select></td>
	</tr>
	<tr>
		<td align="right">数量：</td>
		<td><input type="text" name="amount" id="amount" size="12" value="" title="请输入一个数字。如5"></td>
		<td align="right">单价：</td>
		<td>{[$result.price]}元/{[$result.unit]}</td>
	</tr>	
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="3" name="content" cols="55"></textarea></td>
	</tr>
</table>
</form>

<script type="text/javascript" src="js/material/bom/bom.js?r={[$smarty.now]}"></script>
<script type="text/javascript" src="js/material/in/add.js?r={[$smarty.now]}"></script>
